package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:22
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysSerialCode implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String codeTemplate;

    /**
     * Attribute codeTemplate Be Seted Falg
     */
    private boolean codeTemplateSetted = false;

    /**
    * Attribute codeTemplate is Null Falg
    */
    private boolean codeTemplateNull = false;
    private String codeType;

    /**
     * Attribute codeType Be Seted Falg
     */
    private boolean codeTypeSetted = false;

    /**
    * Attribute codeType is Null Falg
    */
    private boolean codeTypeNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private long serialNumber;

    /**
     * Attribute serialNumber Be Seted Falg
     */
    private boolean serialNumberSetted = false;

    /**
    * Attribute serialNumber is Null Falg
    */
    private boolean serialNumberNull = false;
    private int serialNumberIncrement;

    /**
     * Attribute serialNumberIncrement Be Seted Falg
     */
    private boolean serialNumberIncrementSetted = false;

    /**
    * Attribute serialNumberIncrement is Null Falg
    */
    private boolean serialNumberIncrementNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String serialNumberFormat;

    /**
     * Attribute serialNumberFormat Be Seted Falg
     */
    private boolean serialNumberFormatSetted = false;

    /**
    * Attribute serialNumberFormat is Null Falg
    */
    private boolean serialNumberFormatNull = false;

    public SysSerialCode() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get codeTemplate
         *
         * @return String
         */
    final public String getCodeTemplate() {
        if (isCodeTemplateNull()) {
            return null;
        } else {
            return StringUtils.trim(codeTemplate);
        }
    }

    /**
     * Set codeTemplate
     *
     * @param String
     */
    final public void setCodeTemplate(String codeTemplate) {
        this.codeTemplate = StringUtils.trim(codeTemplate);

        this.codeTemplateSetted = true;

        this.setCodeTemplateNull(this.codeTemplate == null);
    }

    /**
     * Get codeTemplate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCodeTemplateSetted() {
        return this.codeTemplateSetted;
    }

    /**
     * Set codeTemplate Null
     *
     */
    final public void setCodeTemplateNull() {
        this.codeTemplateNull = true;
    }

    final public void setCodeTemplateNull(boolean aNullFlag) {
        this.codeTemplateNull = aNullFlag;
    }

    final public boolean isCodeTemplateNull() {
        return this.codeTemplateNull;
    }

    /**
         * Get codeType
         *
         * @return String
         */
    final public String getCodeType() {
        if (isCodeTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(codeType);
        }
    }

    /**
     * Set codeType
     *
     * @param String
     */
    final public void setCodeType(String codeType) {
        this.codeType = StringUtils.trim(codeType);

        this.codeTypeSetted = true;

        this.setCodeTypeNull(this.codeType == null);
    }

    /**
     * Get codeType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCodeTypeSetted() {
        return this.codeTypeSetted;
    }

    /**
     * Set codeType Null
     *
     */
    final public void setCodeTypeNull() {
        this.codeTypeNull = true;
    }

    final public void setCodeTypeNull(boolean aNullFlag) {
        this.codeTypeNull = aNullFlag;
    }

    final public boolean isCodeTypeNull() {
        return this.codeTypeNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get serialNumber
         *
         * @return long
         */
    final public long getSerialNumber() {
        return serialNumber;
    }

    /**
     * Set serialNumber
     *
     * @param long
     */
    final public void setSerialNumber(long serialNumber) {
        this.serialNumber = serialNumber;

        this.serialNumberSetted = true;

        this.setSerialNumberNull(false);
    }

    /**
     * Get serialNumber Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSerialNumberSetted() {
        return this.serialNumberSetted;
    }

    /**
     * Set serialNumber Null
     *
     */
    final public void setSerialNumberNull() {
        this.serialNumberNull = true;
    }

    final public void setSerialNumberNull(boolean aNullFlag) {
        this.serialNumberNull = aNullFlag;
    }

    final public boolean isSerialNumberNull() {
        return this.serialNumberNull;
    }

    /**
         * Get serialNumberIncrement
         *
         * @return int
         */
    final public int getSerialNumberIncrement() {
        return serialNumberIncrement;
    }

    /**
     * Set serialNumberIncrement
     *
     * @param int
     */
    final public void setSerialNumberIncrement(int serialNumberIncrement) {
        this.serialNumberIncrement = serialNumberIncrement;

        this.serialNumberIncrementSetted = true;

        this.setSerialNumberIncrementNull(false);
    }

    /**
     * Get serialNumberIncrement Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSerialNumberIncrementSetted() {
        return this.serialNumberIncrementSetted;
    }

    /**
     * Set serialNumberIncrement Null
     *
     */
    final public void setSerialNumberIncrementNull() {
        this.serialNumberIncrementNull = true;
    }

    final public void setSerialNumberIncrementNull(boolean aNullFlag) {
        this.serialNumberIncrementNull = aNullFlag;
    }

    final public boolean isSerialNumberIncrementNull() {
        return this.serialNumberIncrementNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get serialNumberFormat
         *
         * @return String
         */
    final public String getSerialNumberFormat() {
        if (isSerialNumberFormatNull()) {
            return null;
        } else {
            return StringUtils.trim(serialNumberFormat);
        }
    }

    /**
     * Set serialNumberFormat
     *
     * @param String
     */
    final public void setSerialNumberFormat(String serialNumberFormat) {
        this.serialNumberFormat = StringUtils.trim(serialNumberFormat);

        this.serialNumberFormatSetted = true;

        this.setSerialNumberFormatNull(this.serialNumberFormat == null);
    }

    /**
     * Get serialNumberFormat Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSerialNumberFormatSetted() {
        return this.serialNumberFormatSetted;
    }

    /**
     * Set serialNumberFormat Null
     *
     */
    final public void setSerialNumberFormatNull() {
        this.serialNumberFormatNull = true;
    }

    final public void setSerialNumberFormatNull(boolean aNullFlag) {
        this.serialNumberFormatNull = aNullFlag;
    }

    final public boolean isSerialNumberFormatNull() {
        return this.serialNumberFormatNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysSerialCode) == false) {
            return false;
        }

        SysSerialCode other = (SysSerialCode) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("codeTemplate=");
        buffer.append(this.codeTemplate);

        buffer.append("codeType=");
        buffer.append(this.codeType);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("serialNumber=");
        buffer.append(this.serialNumber);

        buffer.append("serialNumberIncrement=");
        buffer.append(this.serialNumberIncrement);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("serialNumberFormat=");
        buffer.append(this.serialNumberFormat);

        buffer.append("]");

        return buffer.toString();
    }
}
